A VB6 Property is Like a Perl Tied Variable, Sort Of

Mark Leighton Fisher on 2007-03-09T17:19:53

When you tie a variable in Perl:

    tie %Config, 'Config', { "abc" => "def" };

In VB (VB6 or current VB.NET), you will want to wrap that variable as a Property. The Get Property corresponds to Perl's tie FETCH() operation, while Let/Set (Perl-only people: don't ask) correspond to Perl's tie STORE() operation. Making a variable tied/Property'ed gives you a chance to do some real work behind the scenes without forcing you to create a whole class.

(Noted here mostly so I remember it.)